﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace MYData.Entity.DomainModels.ApiEntity.Dto
{
    public class tb_project_billing_appendixDto
    {
        /// <summary>
        ///来款单位
        /// </summary>
        [Display(Name = "来款单位")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string billingUnit { get; set; }

        /// <summary>
        ///入账单编号
        /// </summary>
        [Display(Name = "入账单编号")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string billingNumber { get; set; }

        /// <summary>
        ///财务到账时间
        /// </summary>
        [Display(Name = "财务到账时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public DateTime billingTime { get; set; }

        /// <summary>
        ///到账金额(单位:元)
        /// </summary>
        [Display(Name = "到账金额(单位:元)")]
        [DisplayFormat(DataFormatString = "10,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public decimal billingMoney { get; set; }

        /// <summary>
        ///银行卡号
        /// </summary>
        [Display(Name = "银行卡号")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string billingBank { get; set; }

        /// <summary>
        ///摘要
        /// </summary>
        [Display(Name = "摘要")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string billingAbstract { get; set; }

        /// <summary>
        ///其他
        /// </summary>
        [Display(Name = "其他")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string billingRests { get; set; }
        public List<tb_project_appedixsDto> file { get; set; }
    }
    public class tb_project_appedixsDto
    {


        /// <summary>
        ///申报附件表名称
        /// </summary>
        [Display(Name = "申报附件表名称")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string appendixName { get; set; }

        /// <summary>
        ///入账单外键
        /// </summary>
        [Display(Name = "申报基础信息表外键")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string billingId { get; set; }

        /// <summary>
        ///附件路径
        /// </summary>
        [Display(Name = "附件路径")]
        [Column(TypeName = "nvarchar(max)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string appendixUrl { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public DateTime creatorDate { get; set; }

        /// <summary>
        ///是否删除
        /// </summary>
        [Display(Name = "是否删除")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int isDelete { get; set; }
    }
}
